package tianrun.ziguan.api.forecast.exception;

/**
 *
 * @author zhaoliang
 * @date 2019/7/18
 */

public enum CommonErrorCode implements ErrorCode {

	//
	SUCCESS("1000","请求正常"),
	SYS_1001("1001","请求参数校验异常,请检查"),

	SYS_1004("1004","系统异常"),
	SYS_1005("1005","返回内容为空"),
	SYS_10001("10001", "构建bigdao查询url失败-表名称不能为空"),
	SYS_10002("10002", "构建bigdao查询url失败-数据库名称不能为空"),


	INVOKING_3002("3002","帆软接口调用异常"),
	;
	
	private final String code;
	private final String describe;

	private CommonErrorCode(String code, String describe) {
		this.code = code;
		this.describe = describe;
	}

	@Override
	public String getCode() {
		return this.code;
	}

	@Override
	public String getDescription() {
		return this.describe;
	}

	@Override
	public String toString() {
		return String.format("Code:[%s], Describe:[%s]", this.code,
				this.describe);
	}

}